package test;

public class Person {
	private String name;
	private int id;
	private int age;
	private boolean male;

	@Override
	public String toString(){
		return "name:"+getName()+",id:"+getId()+",age:"+getAge()+",male:"+isMale();
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public void setMale(boolean male) {
		this.male = male;
	}
	public boolean isMale() {
		return male;
	}
	public boolean isNanRen(){
		return male;
	}
	public String getXingMing(){
		return name;
	}
}
